using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DataLayer.Model
{
    public class Message
    {
        [Key]
        public int Id { get; set; }

        public virtual User IdSender { get; set; }

        public virtual User IdReceiver { get; set; }

        public System.DateTime DateTime { get; set; }

        [MaxLength(255)]
        public string Subject { get; set; }

        public string Content { get; set; }

        public bool IsRead { get; set; }
    }
}
